<extend name="Public:index" />
<block name="main-crumb">
 <li class="active">任务类型列表</li>
</block>
<block name="main-content">

   <form  class="form-inline definewidth m20" action="{:U('task_lists')}" method="post">
   <table class="table table-bordered table-hover definewidth m10">
        <td style="text-align:left;padding-left:5px">
            <label>任务类型名称:</label><input type="text" class="input_blur" name="name" id="name" value="{$name}"/>&nbsp;&nbsp;
            </td >
            <td>
              <input type="submit" class="btn btn_primary" id="searth" value="搜索" />&nbsp;&nbsp;
         </td>
   </table>
   <table class="table table-bordered table-hover definewidth m10">
       <tr>
            <th>编号</th>
            <th>任务类型名称</th>
            <th>任务类型标志</th>
            <th>是否显示</th>
            <th>操作</th>
        </tr>
        <volist name="list" id="mlist">
        <tr>

            <td>{$mlist[id]}</td>
            <td>{$mlist[name]}</td>
            <td>{$mlist[sign]}</td>
            <td><if condition="$mlist[is_show] eq 1">
                                显示
                <else/>
                                不显示
                </if></td>
            <td>  <a href="{:U('task_edit',array('id'=>$mlist[id]))}">编辑</a>&nbsp;&nbsp;
                 |&nbsp;&nbsp;<a href="javascript:if(confirm('确认删除？'))location='{:U('task_deletes',array('id'=>$mlist[id]))}'">删除</a>

            </td>
        </tr>
        </volist>
       <tr>
           <td style="text-align:left" colspan="2"> <a href="{:U('task_add')}"  >添加任务类型</a></td>
           <td style="text-align:center" colspan="6" id="pages">{$page}</td>
       </tr>
    </table>
   </form>
</block>